package com.mega32k.mevila.item.other;

import com.mega32k.mevila.tab.MevilaToolTab;
import com.mega32k.mevila.util.ItemInit;
import net.minecraft.client.resources.I18n;
import net.minecraft.entity.EntityType;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.*;
import net.minecraft.item.ShieldItem;
import net.minecraft.loot.functions.CopyNbt;
import net.minecraft.util.DamageSource;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.util.text.StringTextComponent;
import net.minecraftforge.event.entity.living.LivingHurtEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.registries.ObjectHolder;

public class MevilaShieldItem extends ShieldItem {
    public MevilaShieldItem() {
        super(new Item.Properties()
                .maxStackSize(1)
                .isImmuneToFire()
                .maxDamage(1336)
                .rarity(ItemInit.RMEVILA)
                .group(MevilaToolTab.mevilaToolTab)
        );
    }

    @Override
    public ITextComponent getDisplayName(ItemStack p_200295_1_) {
        return new StringTextComponent(I18n.format("item.mevila.mevilaShield"));
    }

}
